package com.horoscope.astrology.zodiac.signs.free.bean

import java.util.*
import kotlin.collections.ArrayList


/**
 *  广告实体
 *  @param type(Interstitial,    Native,    Reward)   还有一种banner 横幅
 *              插页或页面切换时   本机或源生  奖励
 * */
class ConfigResultBean : BaseBean() {

    var data = ""

    // 整合
    class ConfigResultBeanData : BaseBean() {
        var ADID = ADIDBean()
        val ADConfig = ADConfigBean()

        class ADConfigBean {
            var Admob = AdmobBean()
            var IronSource = IronSourceBean()
        }
    }

    // AdMob SDK -> AppID
    class AdmobBean {
        var AppID = ""
    }

    class IronSourceBean {
        var AppID = ""
    }

    // 广告实体类  Collections.synchronizedList
    class ADIDBean {
        var Interstitial = Collections.synchronizedList(ArrayList<ArrayList<AdInfo>>())
        var Native = Collections.synchronizedList(ArrayList<ArrayList<AdInfo>>())
        var Reward = Collections.synchronizedList(ArrayList<ArrayList<AdInfo>>())
    }

    /**
     * 广告具体参数
     * @param id -> 实际展示广告所用
     * @param cominfo -> 据说是广告费
     * @param advertiser -> 广告商
     * */
    class AdInfo {
        var placement = ""
        var id = ""
        var cpminfo = ""
        var advertiser = ""
    }
}